package mynote;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

//确认注册 按钮的监听
public class SignUpBtnListener implements ActionListener {
    private SignUpDialog signUp;

    public SignUpBtnListener(SignUpDialog signUp) {
        this.signUp = signUp;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        if (signUp.CheckName() && signUp.CheckPwd() && signUp.CheckPwdConfirm()) {
            signUp.signUp();
        }
    }
}
